package com.bh.service.impl;

import com.bh.mapper.CityMapper;
import com.bh.pojo.entry.City;
import com.bh.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl implements CityService {
    @Autowired
    private CityMapper cityMapper;
    @Override
    public List<City> findCityById(Integer pid) {
        return   cityMapper.findCityById(pid);
    }

    @Override
    public City findCityByName(String shengName) {

        return cityMapper.findCityByName(shengName);
    }

}
